<%@page import="weaver.conn.RecordSet"%>
<%@page import="com.alibaba.fastjson.JSONObject"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="com.zlgs.cqyf.vote.ConnectionUtil"%>
<%@ page import="java.io.PrintWriter" %>
<%
    response.setCharacterEncoding("UTF-8");
    response.setContentType("application/json; charset=utf-8");
    JSONObject retObject = new JSONObject();
    retObject.put("code", 200);
    retObject.put("msg", "操作成功");
	try{
	    // URL 参数
	    Integer id  = Integer.parseInt(request.getParameter("id"));                  // 子奖项ID
	    if (null != id){
            // 插入数据
           
            String sql = "UPDATE vote_awards_subname set is_del=1 where id = "+id.toString();
            RecordSet set = new RecordSet();
            set.executeSql(sql);
        }
    } catch (Exception e) {
        e.printStackTrace();
        retObject.put("code", -1);
        retObject.put("msg", e.getMessage());
    } finally {
        PrintWriter printWriter = response.getWriter();
        printWriter.append(retObject.toJSONString());
    }
%>
 